<?php
class Common extends Engine_supervisor
{
	public function __construct()
	{
		
	}
	public function setSideWithPages($sideNumber,$count,$onSide=10)
	{
		$countOnSide = $onSide;
		$numberOfSides = ceil($count/$countOnSide);
		$offset = ($countOnSide*$sideNumber)-$countOnSide;
		
		return array(
					'offset' => $offset,
					'limit' => $countOnSide,
					'countOfSides' => $numberOfSides);
	}
	
}
?>